package com.voxel.sense.infomsg.module.login;

import com.example.com.common.app.BaseContract;

/**
 * Created by ChenYiYao on 2018/2/1.
 */

public interface LoginContract {

    interface View extends BaseContract.View<Presenter> {
        //登陆成功
        void loginSuccess();

        //登陆失败
        void loginFailure(String msg);

        //记住密码
        void initPswEditText(boolean flag, String psw);

        //初始化账号输入框
        void setAccount(String str);

        //身份证验证弹窗
        void onShowIdCardDialog();

        void onDismissIdcardDialog();
    }

    interface Presenter extends BaseContract.Presenter {
        //发起一个登陆
        void login(String account, String psw);

        void setRememberPsw(boolean flag);

        void upIdCardNumb(String numb);
    }

}
